//import { getUserInfoSevice } from "@/api/user";
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useUserStore = defineStore(
  'user',
  () => {
    //用户信息模块
    const user = ref({})
    const getUser = () => {
      return user.value
    }

    const setUser = (value) => {
      user.value = value
    }

    return {
      user,
      getUser,
      setUser,
    }
  },
  {
    persist: true,
  },
)
